package com.im.partchat.mvp.model.group;

import com.im.partchat.bean.reponsed.BaseResponse;
import com.im.partchat.bean.reponsed.GroupQueryReponse;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by fzl on 2017/6/29 0029.
 * VersionCode: 1
 * Desc:
 */

public interface GroupModel {


    Observable<BaseResponse<String>> groupCreate(String userId, String name, String ids);

    Observable<BaseResponse<String>> groupJoin(String groupId, String name, String ids);

    Observable<BaseResponse<String>> groupQuit(String groupId, String ids);

    Observable<BaseResponse<String>> groupDismiss(String userId, String groupId);

    Observable<BaseResponse<String>> groupRefresh(String groupId, String name);

    Observable<BaseResponse<List<GroupQueryReponse>>> groupQuery( String groupId);

}
